Release 10.1A: OpenEdge Development:
Progress 4GL Reference
WRITE-DATA-ELEMENT( ) method
Creates a complete XML node in a SAX-writer object.
Return type: LOGICAL Applies to: SAX-writer object handle
nameA LONGCHAR expression evaluating to the fully qualified or unqualified name of the element.
chardataAn expression that evaluates to a CHARACTER variable that contains the XML text.
longcharAn expression that evaluates to a LONGCHAR variable that contains the XML text.
namespace-URIA CHARACTER expression evaluating to the URI of the element, or an empty string ("") or the Unknown value (
?).Creates a complete XML node. This method call sets the WRITE-STATUS to SAX-WRITE-ELEMENT.
If you use
namespace-URI, then the prefix will be resolved in the following order:If
namecontains a prefix andnamespace-URIis used, and this call is the first instance of thenamespace-URI,then the namespace will be added to the element. This is equivalent to calling the DECLARE-NAMESPACE method.If only the
nameis used and it contains a prefix, then the SAX-writer attempts to resolve the prefix to a namespace.This technique is logically equivalent to calling the START-ELEMENT, WRITE-CHARACTERS, and END-ELEMENT methods where
nameandnamespace-URIare the parameters of START-ELEMENT and END-ELEMENT, andchardatais the parameter of WRITE-CHARACTERS.Note that attributes and namespaces cannot be added after you call this method. If you need to add either to the element, then use the START-ELEMENT method.
If the STRICT attribute is TRUE, the FRAGMENT attribute is FALSE, and the invocation would result in more than one document-level element (that is, root node), then the method fails. Also, if STRICT is TRUE, an external DTD has been declared, and the invocation would create the root node, the
nameused for the DTD declaration must match thenameof the root node or the method fails.See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |